<template>
	<view class="main_data">
		<view class="data_list" v-for="(item,index) in 10" :key="index">
			<view class="list_user">
				<u-image width="70rpx" height="70rpx" src=""></u-image>
				<view class="user_text">
					<view class="t_name">
						<text class="name">邯郸丛台区招聘</text>
						<text class="top">置顶</text>
						<text class="tip">求职招聘</text>
					</view>
					<view class="t_time">
						2023.07.31 19:02发布
					</view>
				</view>
			</view>
			<view class="list_text one-txt-cut">
				水电暖气会看图纸会预埋独立操作按时上班。我能水电暖气会看图纸会预埋独立操作按时上班。我能
			</view>
			<view class="list_img">
				<view class="img" v-for="(item,idx) in 3" :key="idx">
					<image src="../../static/images/background.png" mode="aspectFill"></image>
				</view>
			</view>
			<view class="list_bot">
				<view class="bot_left">
					<view class="num">
						<u-icon name="eye" color="#999" size="28"></u-icon>
						12123
					</view>
					<view class="num">
						<u-icon name="thumb-up" color="#999" size="28"></u-icon>
						12123
					</view>
				</view>
				<view class="bot_right" @click.stop="phoneBtn(item)">
					<u-icon name="phone-fill" color="#fff" size="28"></u-icon>
					拨打电话
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "dataList",
		data() {
			return {

			};
		},
		methods:{
			// 拨打电话
			phoneBtn(){
				uni.makePhoneCall({
					phoneNumber: '12345678910'
				});
			},
		}
	}
</script>

<style lang="scss">
	// 
	.main_data {
		width: 100%;
		padding: 0 20rpx;

		.data_list {
			width: 100%;
			margin-top: 25rpx;
			padding: 20rpx 16rpx;
			background: #fff;
			border-radius: 10rpx;

			.list_user {
				width: 100%;
				display: flex;
				justify-content: space-between;

				.user_text {
					width: calc(100% - 85rpx);
					display: flex;
					flex-direction: column;
					justify-content: space-between;

					.t_name {
						width: 100%;
						display: flex;
						align-items: center;

						.name {
							font-size: 28rpx;
							font-family: PingFang SC;
							font-weight: 800;
							color: #000000;
							padding-right: 20rpx;
						}

						.top {
							padding: 0 10rpx;
							line-height: 35rpx;
							font-size: 20rpx;
							font-family: PingFang SC;
							color: #FE891B;
							background: rgba(255, 173, 92, 0.28);
							border-radius: 5rpx;
						}

						.tip {
							margin-left: 20rpx;
							padding: 0 10rpx;
							line-height: 35rpx;
							font-size: 20rpx;
							font-family: PingFang SC;
							color: #00CE41;
							background: rgba(178, 255, 202, 0.34);
							border-radius: 5rpx;
						}
					}

					.t_time {
						width: 100%;
						font-size: 20rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #999999;
					}
				}
			}

			.list_text {
				padding: 20rpx 0;
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #000000;
			}

			.list_img {
				width: 100%;
				display: flex;
				justify-content: space-between;

				.img {
					width: 218rpx;

					image {
						display: block;
						width: 100%;
						height: 156rpx;
					}
				}
			}

			.list_bot {
				width: 100%;
				padding-top: 30rpx;
				display: flex;
				justify-content: space-between;

				.bot_left {
					display: flex;
					align-items: center;

					.num {
						display: flex;
						align-items: center;
						font-size: 20rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #999999;
						margin-right: 30rpx;

						.u-icon {
							margin-right: 10rpx;
						}
					}
				}

				.bot_right {
					width: 160rpx;
					height: 58rpx;
					background: #00CE41;
					border-radius: 10rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #FFFFFF;

					.u-icon {
						margin-right: 10rpx;
					}
				}
			}
		}

		.data_list:last-child {
			margin-bottom: 25rpx;
		}
	}
</style>